5
if [ -z "$USER" ]; then
18
# On a release, type would be changed from TRUNK to RELEASE. TRUNK is a useful
19
# signal that the user is not using a blessed (tagged) release.
22
version="$major.$minor.$micro-$type"
24
# The release date is set automatically at configure time (the default).
25
# For a tagged release, this should be the hard-coded date of the release.
26
release_date=`date +%m/%d/%Y`
28
# Bourne shell is tricky when you use backtick command substitution backslash
29
# has special meaning even when surrounded by single-quotes. It is necessary to
30
# escape the backslash.
31
# Here's what we want to exec literally:
32
# echo "$*" | sed s/#/\\#/ | sed s/\$/$$/
33
# The above sed commands are to escape the output for the Makefile.
34
# Arguments to configure which can be printed for version/debug information.
35
configure_arguments=`echo "$*" | sed 's/#/\\\\#/' | sed 's/\\$/$$/'`
37
# Bourne shell is tricky when you use backtick command substitution backslash
38
# has special meaning even when surrounded by single-quotes. It is necessary to
39
# escape the backslash.
40
# Here's what we want to exec literally:
41
# uname -a | sed s/#/\\#/ | sed s/\$/$$/
42
# The above sed commands are to escape the output for the Makefile.
43
system_information=`uname -a | sed 's/#/\\\\#/' | sed 's/\\$/$$/'`
47
# this setting is actually used to identify GNU libc platforms
48
# and Debian is all GNU libc, so force "Linux" even on non-Linux systems
50
build_cpu=`dpkg-architecture -qDEB_BUILD_ARCH | tr \[a-z-\] \[A-Z_\]`
52
if [ "${build_cpu}" = UNKNOWN ]
54
build_cpu=`uname -p | tr \[a-z\] \[A-Z\]`
69
include_package_sand="sand"
70
include_package_allpairs="allpairs"
71
include_package_wavefront="wavefront"
72
include_package_makeflow="makeflow"
73
include_package_ftplite="ftp_lite"
74
include_package_s3tools="s3tools"
75
include_package_chirp="chirp"
76
include_package_resource_monitor="resource_monitor"
77
include_package_resource_monitor_visualizer="resource_monitor_visualizer"
78
include_package_doc="doc"
80
work_queue_bindings=""
82
echo "checking for package compatibility..."
84
if [ -d parrot -a $build_sys = LINUX ]
86
if [ $build_cpu = I386 -o $build_cpu = AMD64 ]
88
echo "parrot IS supported on ${build_sys} ${build_cpu}"
89
include_package_parrot="parrot"
91
echo "parrot is NOT supported on ${build_sys} ${build_cpu}"
92
include_package_parrot=""
95
echo "parrot is NOT supported on ${build_sys} for any cpu type"
96
include_package_parrot=""
99
if [ -d resource_monitor ]
101
if [ $build_sys = LINUX -o $build_sys = DARWIN ]
103
echo "resource_monitor IS supported on ${build_sys}"
104
include_package_resource_monitor="resource_monitor"
106
echo "resource_monitor is NOT (yet) supported on ${build_sys}"
107
include_package_resource_monitor=""
111
install_path="$HOME/cctools"
125
mpi_path="/usr/local"
136
ccflags="-D__EXTENSIONS__ -D_LARGEFILE64_SOURCE -D__LARGE64_FILES -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -Wno-deprecated-declarations -fno-exceptions"
137
# accepted CCFLAGS from outside
138
ccflags="$ccflags $CFLAGS"
140
if [ ${build_sys} != CYGWIN ]
142
ccflags="${ccflags} -fPIC"
146
config_readline_path=auto
147
config_globus_path=auto
148
config_fuse_path=auto
149
config_mysql_path=auto
150
config_perl_path=auto
151
config_python_path=auto
158
config_xrootd_path=no
161
config_swig_path=auto
163
if [ "X${GLOBUS_LOCATION}" != "X" ]
165
globus_path=${GLOBUS_LOCATION}
179
ccflags="${ccflags} -Werror"
184
config_globus_path=yes
195
--with-readline-path)
198
config_readline_path=yes
218
config_irods_path=yes
223
config_mysql_path=yes
233
config_python_path=yes
238
config_xrootd_path=yes
243
config_cvmfs_path=yes
260
--without-system-sand)
261
include_package_sand=""
262
if [ $include_package_allpairs != "" ]
264
echo "*** skipping system 'allpairs' because of dependencies"
265
include_package_allpairs=""
268
--without-system-allpairs)
269
include_package_allpairs=""
271
--without-system-wavefront)
272
include_package_wavefront=""
274
--without-system-makeflow)
275
include_package_makeflow=""
277
--without-system-ftp-lite)
278
include_package_ftplite=""
280
--without-system-s3tools)
281
include_package_s3tools=""
283
--without-system-chirp)
284
include_package_chirp=""
286
--without-system-parrot)
287
include_package_parrot=""
289
--without-system-resource_monitor)
290
include_package_resource_monitor=""
292
--without-system-resource_monitor_visualizer)
293
include_package_resource_monitor_visualizer=""
295
--without-system-doc)
296
include_package_doc=""
303
echo "ignoring unknown package $1"
308
ccflags="${ccflags} -DTCP_LOW_PORT_DEFAULT=$1"
312
ccflags="${ccflags} -DTCP_HIGH_PORT_DEFAULT=$1"
314
-h | -help | --h | --help)
316
Use: configure [options]
321
--globus-flavor <flavor>
323
--tcp-low-port <port>
324
--tcp-high-port <port>
325
--with-PACKAGE-path <path>
326
--without-system-SYSTEM
328
Where PACKAGE may be:
354
resource_monitor_visualizer
360
echo "Unknown argument $1"
370
potential_packages="dttools work_queue ${include_package_sand} ${include_package_allpairs} ${include_package_wavefront} ${include_package_makeflow} ${include_package_ftplite} ${include_package_s3tools} ${include_package_chirp} ${include_package_parrot} ${include_package_resource_monitor} ${include_package_resource_monitor_visualizer} ${include_package_doc}"
374
rm -f Makefile.config
375
echo "checking for all the things I know how to build..."
376
for p in $potential_packages
380
echo "package $p found"
381
packages="${packages} $p"
382
if [ -d `pwd`/$p/src ]
384
internal_ccflags="${internal_ccflags} -I`pwd`/$p/src"
385
internal_ldflags="${internal_ldflags} -L`pwd`/$p/src"
388
echo "package $p not found (that's ok)"
392
require_path ${ccompiler}
393
require_path ${cxxcompiler}
397
# Currently, we rely on the linker --as-needed flag to sort out
398
# which dynamic libraries each executable actually needs.
399
# This is apparently a recent addition to gnu ld.
400
# A better solution would be to explicitly specify which libraries
401
# are needed by which executable, but this will come in a later version.
404
echo -n "checking if ld supports the --as-needed flag..."
405
if ld --help 2>&1 | grep -- --as-needed 2>&1 >/dev/null
408
link_as_needed="-Xlinker --as-needed"
409
link_no_as_needed="-Xlinker --no-as-needed"
414
if [ $build_sys = LINUX ]
416
ldflags="${link_as_needed}"
418
ldflags="-static-libgcc"
421
# accept ldflags from outside
422
ldflags="$ldflags $LDFLAGS"
424
##########################################################################
425
# SWITCH TO STATIC LINKING FOR UNCOMMON THIRD-PARTY PACKAGES
426
##########################################################################
427
library_search_mode=prefer_dynamic
428
##########################################################################
430
if [ $config_rfio_path != no ] && library_search shift ${rfio_path}
432
ccflags="${ccflags} -I${rfio_path}/include -DHAS_RFIO"
434
if [ $config_rfio_path = yes ]
436
echo "*** Sorry, I couldn't find RFIO in $rfio_path"
437
echo "*** Check --with-rfio-path and try again."
440
echo "*** skipping rfio support"
444
if [ $config_dcap_path != no ] && library_search dcap ${dcap_path}
446
ccflags="${ccflags} -I${dcap_path}/dcap -DHAS_DCAP"
448
if [ $config_dcap_path = yes ]
450
echo "*** Sorry, I couldn't find dcap in ${dcap_path}"
451
echo "*** Check --with-dcap-path and try again."
454
echo "*** skipping dcap support"
458
if [ x$globus_flavor = xauto ]
460
if [ $build_cpu = X86_64 ]
468
echo "using a globus flavor of '$globus_flavor' (if this is wrong, use the --globus-flavor argument)"
470
if [ $config_globus_path != no ]
472
if check_file ${globus_path}/include/${globus_flavor}/globus_common.h
474
ccflags="${ccflags} -I${globus_path}/include/${globus_flavor} -DHAS_GLOBUS_GSS"
475
ldflags="${ldflags} -L${globus_path}/lib"
476
for library in globus_gss_assist globus_gssapi_gsi globus_gsi_proxy_core globus_gsi_credential globus_gsi_callback globus_oldgaa globus_gsi_sysconfig globus_gsi_cert_utils globus_openssl globus_openssl_error globus_callout globus_proxy_ssl globus_common ltdl
478
library_search ${library}_${globus_flavor} ${globus_path}
481
cctools_dynamic_auth_libs="${cctools_dynamic_auth_libs} -L${globus_path}/lib -lglobus_gss_assist_${globus_flavor}"
483
elif check_file ${globus_path}/include/globus/globus_common.h
485
ccflags="${ccflags} -I${globus_path}/lib/globus/include -I${globus_path}/include/globus -DHAS_GLOBUS_GSS"
486
ldflags="${ldflags} -L${globus_path}/lib"
487
for library in globus_gss_assist globus_gssapi_gsi globus_gsi_proxy_core globus_gsi_credential globus_gsi_callback globus_oldgaa globus_gsi_sysconfig globus_gsi_cert_utils globus_openssl globus_openssl_error globus_callout globus_proxy_ssl globus_common ltdl
489
library_search $library ${globus_path}
492
cctools_dynamic_auth_libs="${cctools_dynamic_auth_libs} -L${globus_path}/lib -lglobus_gss_assist"
495
if [ $config_globus_path = yes ]
497
echo "*** Sorry, I couldn't find Globus in $globus_path"
498
echo "*** Check --with-globus-path and try again."
501
echo "*** skipping globus support"
505
echo "*** skipping globus support"
508
if [ $config_irods_path != no ] && library_search RodsAPIs "${irods_path}" core/obj
510
ccflags="${ccflags} -I${irods_path}/lib/core/include -I${irods_path}/lib/api/include -I${irods_path}/lib/md5/include -I${irods_path}/server/core/include -I${irods_path}/server/api/include -I${irods_path}/server/icat/include -I${irods_path}/server/drivers/include -I${irods_path}/server/re/include -DHAS_IRODS"
512
if [ $config_irods_path = yes ]
514
echo "*** Sorry, I couldn't find IRODS in $irods_path"
515
echo "*** Check --with-irods-path and try again."
518
echo "*** skipping irods support"
522
if [ $config_mysql_path != no ] && library_search mysqlclient ${mysql_path}
524
if [ ${mysql_path} != /usr ]
526
ccflags="${ccflags} -I${mysql_path}/include"
529
ccflags="${ccflags} -DHAS_MYSQL -DHAS_BXGRID"
531
# MySQL requires zlib
532
if library_search z ${zlib_path}
534
if [ X${zlib_path} != X/usr ]
537
ccflags="${ccflags} -I${zlib_path}/include"
538
ldflags="${ldflags} -L${zlib_path}/lib"
541
echo "*** Sorry, I couldn't find zlib in $zlib_path"
542
echo "*** Check --with-zlib-path and try again."
546
if [ $config_mysql_path = yes ]
548
echo "*** Sorry, I couldn't find MySQL in $mysql_path"
549
echo "*** Check --with-mysql-path and try again."
552
echo "*** skipping mysql support"
556
if [ $config_mpi_path != no ] && check_file ${mpi_path}/bin/mpicc && check_file ${mpi_path}/include/mpi/mpi.h
558
mpilinker=${mpi_path}/bin/mpicc
560
ccflags="${ccflags} -I${mpi_path}/include/mpi -DHAS_MPI"
563
if [ $config_mpi_path = yes ]
565
echo "*** Sorry, I couldn't find mpicc or mpi.h in $mpi_path"
566
echo "*** Check --with-mpi-path and try again."
569
echo "*** skipping mpi support"
573
if [ $config_xrootd_path != no ] && check_file ${xrootd_path}/include/xrootd/XrdVersion.hh
575
if [ x$xrootd_arch = xauto ]
577
if [ $build_cpu = X86_64 ]
579
xrootd_arch=x86_64_linux_26
581
xrootd_arch=i386_linux26
585
echo "using an xrootd arch of '$xrootd_arch' (if this is wrong, use the --xrootd-arch argument)"
587
ccflags="${ccflags} -I${xrootd_path}/include/xrootd -DHAS_XROOTD"
589
for library in XrdPosix XrdClient XrdSys XrdNet XrdNetUtil XrdOuc
591
if ! library_search $library ${xrootd_path} ${xrootd_arch}
593
echo "*** Couldn't find $library in ${xrootd_path}"
599
if [ $config_xrootd_path = yes ]
601
echo "*** Sorry, I couldn't find xrootd in ${xrootd_path}"
602
echo "*** Check --with-xrootd-path and try again."
605
echo "*** skipping xrootd support"
609
if [ $config_cvmfs_path != no ] && check_file ${cvmfs_path}/include/libcvmfs.h
611
ccflags="${ccflags} -I${cvmfs_path}/include -DHAS_CVMFS"
615
if ! library_search $library ${cvmfs_path}
617
echo "*** Couldn't find $library in ${lib_path}"
622
if [ $config_cvmfs_path = yes ]
624
echo "*** Sorry, I couldn't find cvmfs in ${cvmfs_path}"
625
echo "*** Check --with-cvmfs-path and try again."
628
echo "*** skipping cvmfs support"
632
##########################################################################
633
# SWITCH BACK TO DYNAMIC LINKING FOR COMMON SYSTEM LIBRARIES
634
##########################################################################
635
library_search_mode=prefer_dynamic
636
##########################################################################
638
if [ $config_readline_path != no ] && library_search readline ${readline_path}
640
if [ ${readline_path} != /usr ]
642
ccflags="${ccflags} -I${readline_path}/include"
645
ccflags="${ccflags} -DHAS_LIBREADLINE"
647
# We rely on the --as-needed flag to figure out what dynamic
648
# libraries are actually used by each executable.
649
# However, libreadline doesn't properly specify a dependency
650
# on ncurses, termcap, and history, so we must force them to link.
652
if [ $build_sys = LINUX ]
654
# Remove the -lreadline that was added by "library_search readline" above
655
ldflags=`echo $ldflags | sed "s/-lreadline//"`
657
# Put the readline flags in a separate variable to be used only where needed.
658
cctools_readline_ldflags="-lreadline ${link_no_as_needed} -lncurses -lhistory ${link_as_needed}"
660
library_search ncurses ${readline_path}
661
library_search termcap ${readline_path}
662
library_search history ${readline_path}
665
echo "*** skipping readline..."
668
if [ $config_fuse_path != no ]
670
if library_search fuse ${fuse_path} || library_search fuse /
672
if [ x${fuse_path} != x/ -a x${fuse_path} != x/usr ]
674
ccflags="${ccflags} -I${fuse_path}/include"
676
ccflags="${ccflags} -DHAS_FUSE"
678
if [ $config_fuse_path = yes ]
681
echo "*** Sorry, I couldn't find Fuse in $fuse_path"
682
echo "*** Check --with-fuse-path and try again."
685
echo "*** skipping fuse support"
689
echo "*** skipping fuse support"
692
# Solaris places kerberos includes in a strange place.
694
if [ -d ${krb5_path}/include/kerberosv5 ]
696
krb5_include_path=${krb5_path}/include/kerberosv5
698
krb5_include_path=${krb5_path}/include
701
if [ $config_krb5_path != no ] && check_file ${krb5_include_path}/krb5.h && library_search krb5 "${krb5_path}"
703
if [ ${krb5_include_path} != /usr/include ]
705
ccflags="${ccflags} -I${krb5_include_path}"
708
cctools_dynamic_auth_libs="${cctools_dynamic_auth_libs} -L${krb5_path}/lib -lkrb5"
710
ccflags="${ccflags} -DHAS_KRB5"
712
if [ $config_krb5_path = yes ]
714
echo "*** Sorry, I couldn't find Kerberos in $krb5_path"
715
echo "*** Check --with-krb5-path and try again."
718
echo "*** skipping krb5 support"
722
if [ $config_perl_path != no ]
724
if check_file ${perl_path}/bin/perl
726
perl=${perl_path}/bin/perl
733
perl_version=`${perl} -e 'printf "%vd\n",$^V;'`
736
echo "perl version is ${perl_version}"
744
perl_ccflags=`${perl} -MExtUtils::Embed -e ccopts`
745
perl_ldflags=`${perl} -MExtUtils::Embed -e ldopts`
749
# On OSX, the ExtUtils::Embed options contain options
750
# to generate triple-fat binaries, which fails when
751
# we attempt to bring in our thin binaries.
753
# To avoid this problem, remove all of the -arch XXX
754
# arguments, so that the compiler produces the default,
755
# which will be compatible with the other objects we compile.
757
if [ ${build_sys} = DARWIN ]
759
perl_ccflags=`echo ${perl_ccflags} | sed 's/-arch [^ ]* *//g'`
760
perl_ldflags=`echo ${perl_ldflags} | sed 's/-arch [^ ]* *//g'`
763
work_queue_bindings="$work_queue_bindings perl"
771
if [ $config_perl_path = yes ]
773
echo "*** Sorry, I couldn't find the perl libraries in $perl_path"
774
echo "*** Check --with-perl-path and try again."
777
echo "*** skipping perl support"
782
if [ $config_python_path != no ]
784
if [ -n "$PYTHON" ] && check_file ${PYTHON}
787
elif check_file ${python_path}/bin/python2
789
python=${python_path}/bin/python2
790
elif check_file ${python_path}/bin/python
792
python=${python_path}/bin/python
799
python_version=`${python} -V 2>&1 | cut -d " " -f 2`
800
echo "python version is ${python_version}"
801
python_major_version=`echo ${python_version} | cut -d . -f 1`
802
python_minor_version=`echo ${python_version} | cut -d . -f 2 | cut -d . -f 1,2`
803
if [ "$python_major_version" -eq 2 -a "$python_minor_version" -ge 4 ]
805
if check_file ${python_path}/include/python2.$python_minor_version/Python.h
807
echo "found python development libraries"
808
python_ccflags_file=`mktemp tmp.XXXXXX`
809
python_ldflags_file=`mktemp tmp.XXXXXX`
811
env HOME=/var/empty ${python} > $python_ccflags_file <<EOF
812
from distutils import sysconfig
813
flags = ['-I' + sysconfig.get_python_inc(),
814
'-I' + sysconfig.get_python_inc(plat_specific=True)]
815
syscfgflags = sysconfig.get_config_var('CFLAGS')
816
if not syscfgflags is None:
817
flags.extend(syscfgflags.split())
818
print ' '.join(flags)
820
env HOME=/var/empty ${python} > $python_ldflags_file <<EOF
821
from distutils import sysconfig
822
libs = sysconfig.get_config_var('LIBS').split() + sysconfig.get_config_var('SYSLIBS').split()
823
if not sysconfig.get_config_var('Py_ENABLE_SHARED'):
824
libs.insert(0, '-L' + sysconfig.get_config_var('LIBPL'))
825
libs.extend(sysconfig.get_config_var('LINKFORSHARED').split())
828
python_ccflags=`cat $python_ccflags_file`
829
python_ldflags=`cat $python_ldflags_file`
830
rm $python_ccflags_file
831
rm $python_ldflags_file
833
# On OSX, the ExtUtils::Embed options contain options
834
# to generate triple-fat binaries, which fails when
835
# we attempt to bring in our thin binaries.
837
# To avoid this problem, remove all of the -arch XXX
838
# arguments, so that the compiler produces the default,
839
# which will be compatible with the other objects we compile.
841
if [ ${build_sys} = DARWIN ]
843
python_ccflags=`echo ${python_ccflags} | sed 's/-arch [^ ]* *//g'`
844
python_ldflags=`echo ${python_ldflags} | sed 's/-arch [^ ]* *//g'`
847
if [ $build_sys = DARWIN ]
849
python_ldflags="$python_ldflags -undefined dynamic_lookup"
852
work_queue_bindings="$work_queue_bindings python"
857
echo "*** Sorry, we require Python >= 2.4"
864
if [ $config_python_path = yes ]
866
echo "*** Sorry, I couldn't find the Python >= 2.4 libraries in $python_path"
867
echo "*** Check --with-python-path and try again."
870
echo "*** skipping python support"
876
if [ $config_swig_path != no ]
879
if check_file ${swig_path}/bin/swig
881
swig=${swig_path}/bin/swig
887
echo "*** skipping swig bindings for work queue"
893
swig_version=`${swig} -version | grep -i version | awk '{print $3}'`
894
if [ "$python" != 1 -a ! \( "$python_major_version" -eq 2 -a "$python_minor_version" -eq 4 \) -a `format_version $swig_version` -eq `format_version 1.3.29` ]
896
echo "*** Sorry, Swig 1.3.29 does not work with Python $python_version."
897
echo "*** skipping swig bindings for work queue"
898
elif [ `format_version $swig_version` -ge `format_version 1.3.29` ]
902
echo "*** Sorry, I need swig >= 1.3.29"
903
echo "*** skipping swig bindings for work queue"
907
if [ $config_swig_path = yes ]
909
echo "*** Sorry, I couldn't find swig in $swig_path"
910
echo "*** Check --with=swig-path and try again."
913
echo "*** skipping swig bindings for work queue"
917
if [ $found_swig != yes ]
919
work_queue_bindings=""
924
library_search ssl /usr
925
library_search crypto /usr
926
library_search resolv /usr
927
library_search socket /usr
928
library_search nsl /usr
930
# Finally, add in standard system libraries found everywhere
932
if [ $build_sys != DARWIN ]
934
ldflags="${ldflags} -lrt"
937
if [ $build_sys != FREEBSD ]
939
ldflags="${ldflags} -ldl"
942
#Hack to get chirp to compile on cygwin.
943
if [ ${build_sys} != CYGWIN ]
945
ldflags="${ldflags} -lstdc++ -lpthread -lz -lc -lm"
947
ldflags="${ldflags} -lstdc++ -lpthread -lz -lm"
951
if [ $build_sys = DARWIN ]
953
cctools_dynamic_suffix=dylib
954
cctools_dynamic_flag=-dynamiclib
956
cctools_dynamic_suffix=so
957
cctools_dynamic_flag=-shared
960
optional_function strsignal /usr/include/string.h HAS_STRSIGNAL
961
optional_function pread /usr/include/unistd.h HAS_PREAD
962
optional_function pwrite /usr/include/unistd.h HAS_PWRITE
964
optional_include sys/statfs.h HAS_SYS_STATFS_H
965
optional_include sys/statvfs.h HAS_SYS_STATVFS_H
966
optional_include sys/xattr.h HAS_SYS_XATTR_H
967
optional_include attr/xattr.h HAS_ATTR_XATTR_H
968
optional_include fts.h HAS_FTS_H
972
if check_path doxygen
974
cctools_doctargets="${cctools_doctargets} apipages"
976
echo "*** not building API documentation"
981
cctools_doctargets="${cctools_doctargets} htmlpages"
984
cctools_doctargets="${cctools_doctargets} manpages"
986
echo "*** not building man pages"
989
echo "*** not building html or man pages"
992
# We always compile with debugging enabled,
993
# however on Solaris, the -g option results in a different
994
# debugging format that causes linking errors in getopt code.
996
if [ $build_sys = SUNOS ]
998
debug_flag="-gstabs+"
1003
ccflags="${ccflags} -DINSTALL_PATH='\"${install_path}\"' $debug_flag -D_REENTRANT -D_GNU_SOURCE -DBUILD_USER='\"$build_user\"' -DBUILD_HOST='\"$build_host\"' -DCCTOOLS_VERSION_MAJOR=$major -DCCTOOLS_VERSION_MINOR=$minor -DCCTOOLS_VERSION_MICRO='\"$micro\"' -DCCTOOLS_VERSION='\"$version\"' -DCCTOOLS_RELEASE_DATE='\"$release_date\"' -DCCTOOLS_CONFIGURE_ARGUMENTS='\"$configure_arguments\"' -DCCTOOLS_SYSTEM_INFORMATION='\"$system_information\"' -DCCTOOLS_OPSYS_${build_sys} -DCCTOOLS_CPU_${build_cpu}"
1004
ldflags="${ldflags} ${debug_flag}"
1006
if [ X$include_package_parrot = "Xparrot" ]
1009
cat <<EOF > libparrot.test.c
1010
int main() { return 0; }
1012
echo -n "testing creation of 64-bit libparrot_helper.so..."
1013
$ccompiler $internal_ccflags -m64 libparrot.test.c -o libparrot.test > /dev/null 2>&1
1016
build_lib64parrot_helper="yes"
1018
build_lib64parrot_helper="no"
1020
echo $build_lib64parrot_helper
1022
echo -n "testing creation of 32-bit libparrot_helper.so..."
1023
$ccompiler $internal_ccflags -m32 libparrot.test.c -o libparrot.test > /dev/null 2>&1
1026
build_lib32parrot_helper="yes"
1028
build_lib32parrot_helper="no"
1030
echo $build_lib32parrot_helper
1032
rm -f libparrot.test.c libparrot.test
1036
echo "Creating Makefile.config..."
1038
cat <<EOF >>Makefile.config
1039
# Generated at `date` by $USER@`uname -n`
1041
CCTOOLS_INSTALL_DIR=${install_path}
1042
CCTOOLS_PACKAGES=${packages}
1044
CCTOOLS_CC=${ccompiler}
1045
CCTOOLS_BASE_CCFLAGS=${ccflags}
1046
CCTOOLS_INTERNAL_CCFLAGS=${internal_ccflags} \${CCTOOLS_BASE_CCFLAGS}
1047
CCTOOLS_CCFLAGS=-I\${CCTOOLS_INSTALL_DIR}/include/cctools \${CCTOOLS_BASE_CCFLAGS}
1049
CCTOOLS_CXX=${cxxcompiler}
1050
CCTOOLS_BASE_CXXFLAGS=${ccflags}
1051
CCTOOLS_INTERNAL_CXXFLAGS=${internal_ccflags} \${CCTOOLS_BASE_CXXFLAGS}
1052
CCTOOLS_CXXFLAGS=-I\${CCTOOLS_INSTALL_DIR}/include/cctools \${CCTOOLS_BASE_CXXFLAGS}
1054
CCTOOLS_LD=${linker}
1055
CCTOOLS_BASE_LDFLAGS=${ldflags}
1056
CCTOOLS_INTERNAL_LDFLAGS= ${internal_ldflags} \${CCTOOLS_BASE_LDFLAGS}
1057
CCTOOLS_LDFLAGS=-L\${CCTOOLS_INSTALL_DIR}/lib \${CCTOOLS_BASE_LDFLAGS}
1059
CCTOOLS_MPI_LD=@echo MPI_LINK \$@; ${mpilinker}
1060
CCTOOLS_USE_MPI=$usempi
1062
CCTOOLS_READLINE_LDFLAGS=${cctools_readline_ldflags}
1064
CCTOOLS_DYNAMIC_SUFFIX=${cctools_dynamic_suffix}
1065
CCTOOLS_DYNAMIC_FLAG=${cctools_dynamic_flag}
1066
CCTOOLS_DYNAMIC_AUTH_LIBS=${cctools_dynamic_auth_libs}
1069
CCFLAGS=\$(CCTOOLS_CCFLAGS)
1071
LDFLAGS=\$(CCTOOLS_LDFLAGS)
1073
CXXFLAGS=\$(CCTOOLS_CXXFLAGS)
1074
MPILD=\$(CCTOOLS_MPI_LD)
1078
CCTOOLS_SWIG=${swig}
1080
CCTOOLS_PERL=${perl}
1081
CCTOOLS_PERL_CCFLAGS=${perl_ccflags}
1082
CCTOOLS_PERL_LDFLAGS=${perl_ldflags}
1083
CCTOOLS_PERL_VERSION=${perl_version}
1085
CCTOOLS_PYTHON=${python}
1086
CCTOOLS_PYTHON_CCFLAGS=${python_ccflags}
1087
CCTOOLS_PYTHON_LDFLAGS=${python_ldflags}
1088
CCTOOLS_PYTHON_VERSION=${python_major_version}.${python_minor_version}
1090
CCTOOLS_WORK_QUEUE_BINDINGS=${work_queue_bindings}
1092
CCTOOLS_DOCTARGETS=${cctools_doctargets}
1094
CCTOOLS_M4_ARGS=-DCCTOOLS_VERSION=${major}.${minor}.${micro} -DCCTOOLS_RELEASE_DATE=${release_date}
1096
CCTOOLS_BUILD_LIB64PARROT_HELPER=${build_lib64parrot_helper}
1097
CCTOOLS_BUILD_LIB32PARROT_HELPER=${build_lib32parrot_helper}
1102
echo "To re-configure, type './configure.rerun'"
1103
echo "To build, type '${MAKE}'"
1104
echo "To build and install, type '${MAKE} install'"