475
493
# Shell function definitions:
476
494
# This seems to be the best place for them
496
# func_mktempdir [string]
497
# Make a temporary directory that won't clash with other running
498
# libtool processes, and avoids race conditions if possible. If
499
# given, STRING is the basename for that directory.
502
my_template="${TMPDIR-/tmp}/${1-$progname}"
504
if test "$run" = ":"; then
505
# Return a directory name, but don't create it in dry-run mode
506
my_tmpdir="${my_template}-$$"
509
# If mktemp works, use that first and foremost
510
my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
512
if test ! -d "$my_tmpdir"; then
513
# Failing that, at least try and use $RANDOM to avoid a race
514
my_tmpdir="${my_template}-${RANDOM-0}$$"
516
save_mktempdir_umask=`umask`
519
umask $save_mktempdir_umask
522
# If we're not in dry-run mode, bomb out on failure
523
test -d "$my_tmpdir" || {
524
$echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
529
$echo "X$my_tmpdir" | $Xsed
478
533
# func_win32_libid arg
479
534
# return the library type of file 'arg'
481
536
# Need a lot of goo to handle *both* DLLs and import libs
482
537
# Has to be a shell function in order to 'eat' the argument
483
538
# that is supplied when $file_magic_command is called.
484
func_win32_libid () {
485
541
win32_libid_type="unknown"
486
542
win32_fileres=`file -L $1 2>/dev/null`
487
543
case $win32_fileres in
639
# func_extract_an_archive dir oldlib
640
func_extract_an_archive ()
642
f_ex_an_ar_dir="$1"; shift
643
f_ex_an_ar_oldlib="$1"
645
$show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
646
$run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
647
if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
650
$echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
655
# func_extract_archives gentop oldlib ...
656
func_extract_archives ()
658
my_gentop="$1"; shift
666
$show "${rm}r $my_gentop"
667
$run ${rm}r "$my_gentop"
668
$show "$mkdir $my_gentop"
669
$run $mkdir "$my_gentop"
671
if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
675
for my_xlib in $my_oldlibs; do
676
# Extract the objects.
678
[\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
679
*) my_xabs=`pwd`"/$my_xlib" ;;
681
my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
682
my_xdir="$my_gentop/$my_xlib"
684
$show "${rm}r $my_xdir"
685
$run ${rm}r "$my_xdir"
686
$show "$mkdir $my_xdir"
687
$run $mkdir "$my_xdir"
689
if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
694
$show "Extracting $my_xabs"
695
# Do not bother doing anything if just a dry run
696
if test -z "$run"; then
697
darwin_orig_dir=`pwd`
698
cd $my_xdir || exit $?
699
darwin_archive=$my_xabs
701
darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
702
darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
703
if test -n "$darwin_arches"; then
704
darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
706
$show "$darwin_base_archive has multiple architectures $darwin_arches"
707
for darwin_arch in $darwin_arches ; do
708
mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
709
lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
710
cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
711
func_extract_an_archive "`pwd`" "${darwin_base_archive}"
713
$rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
714
done # $darwin_arches
715
## Okay now we have a bunch of thin objects, gotta fatten them up :)
716
darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
719
for darwin_file in $darwin_filelist; do
720
darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
721
lipo -create -output "$darwin_file" $darwin_files
722
done # $darwin_filelist
724
cd "$darwin_orig_dir"
726
cd "$darwin_orig_dir"
727
func_extract_an_archive "$my_xdir" "$my_xabs"
732
func_extract_an_archive "$my_xdir" "$my_xabs"
735
my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
737
func_extract_archives_result="$my_oldobjs"
581
739
# End of Shell function definitions
582
740
#####################################
585
743
eval std_shrext=\"$shrext_cmds\"
587
747
# Parse our command line options once, thoroughly.
588
748
while test "$#" -gt 0
4022
4344
eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4024
4346
gentop="$output_objdir/${outputname}x"
4025
$show "${rm}r $gentop"
4026
$run ${rm}r "$gentop"
4027
$show "$mkdir $gentop"
4028
$run $mkdir "$gentop"
4030
if test "$status" -ne 0 && test ! -d "$gentop"; then
4033
4347
generated="$generated $gentop"
4035
for xlib in $convenience; do
4036
# Extract the objects.
4038
[\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
4039
*) xabs=`pwd`"/$xlib" ;;
4041
xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
4042
xdir="$gentop/$xlib"
4044
$show "${rm}r $xdir"
4046
$show "$mkdir $xdir"
4049
if test "$status" -ne 0 && test ! -d "$xdir"; then
4052
# We will extract separately just the conflicting names and we will no
4053
# longer touch any unique names. It is faster to leave these extract
4054
# automatically by $AR in one run.
4055
$show "(cd $xdir && $AR x $xabs)"
4056
$run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
4057
if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
4060
$echo "$modename: warning: object name conflicts; renaming object files" 1>&2
4061
$echo "$modename: warning: to ensure that they will not overwrite" 1>&2
4062
$AR t "$xabs" | sort | uniq -cd | while read -r count name
4065
while test "$i" -le "$count"
4067
# Put our $i before any first dot (extension)
4068
# Never overwrite any file
4070
while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
4072
name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
4074
$show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
4075
$run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
4081
libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
4349
func_extract_archives $gentop $convenience
4350
libobjs="$libobjs $func_extract_archives_result"
4086
4354
if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
4087
4355
eval flag=\"$thread_safe_flag_spec\"
4088
4356
linker_flags="$linker_flags $flag"
4320
4607
eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
4322
4609
gentop="$output_objdir/${obj}x"
4323
$show "${rm}r $gentop"
4324
$run ${rm}r "$gentop"
4325
$show "$mkdir $gentop"
4326
$run $mkdir "$gentop"
4328
if test "$status" -ne 0 && test ! -d "$gentop"; then
4331
4610
generated="$generated $gentop"
4333
for xlib in $convenience; do
4334
# Extract the objects.
4336
[\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
4337
*) xabs=`pwd`"/$xlib" ;;
4339
xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
4340
xdir="$gentop/$xlib"
4342
$show "${rm}r $xdir"
4344
$show "$mkdir $xdir"
4347
if test "$status" -ne 0 && test ! -d "$xdir"; then
4350
# We will extract separately just the conflicting names and we will no
4351
# longer touch any unique names. It is faster to leave these extract
4352
# automatically by $AR in one run.
4353
$show "(cd $xdir && $AR x $xabs)"
4354
$run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
4355
if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
4358
$echo "$modename: warning: object name conflicts; renaming object files" 1>&2
4359
$echo "$modename: warning: to ensure that they will not overwrite" 1>&2
4360
$AR t "$xabs" | sort | uniq -cd | while read -r count name
4363
while test "$i" -le "$count"
4365
# Put our $i before any first dot (extension)
4366
# Never overwrite any file
4368
while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
4370
name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
4372
$show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
4373
$run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
4379
reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
4612
func_extract_archives $gentop $convenience
4613
reload_conv_objs="$reload_objs $func_extract_archives_result"
5001
5336
char **newargz;
5004
program_name = (char *) xstrdup ((char *) basename (argv[0]));
5339
program_name = (char *) xstrdup (base_name (argv[0]));
5340
DEBUG("(main) argv[0] : %s\n",argv[0]);
5341
DEBUG("(main) program_name : %s\n",program_name);
5005
5342
newargz = XMALLOC(char *, argc+2);
5008
cat >> $cwrappersource <<EOF
5009
newargz[0] = "$SHELL";
5345
cat >> $cwrappersource <<EOF
5346
newargz[0] = (char *) xstrdup("$SHELL");
5012
cat >> $cwrappersource <<"EOF"
5013
newargz[1] = fnqualify(argv[0]);
5349
cat >> $cwrappersource <<"EOF"
5350
newargz[1] = find_executable(argv[0]);
5351
if (newargz[1] == NULL)
5352
lt_fatal("Couldn't find %s", argv[0]);
5353
DEBUG("(main) found exe at : %s\n",newargz[1]);
5014
5354
/* we know the script has the same name, without the .exe */
5015
5355
/* so make sure newargz[1] doesn't end in .exe */
5016
5356
strendzap(newargz[1],".exe");
5017
5357
for (i = 1; i < argc; i++)
5018
5358
newargz[i+1] = xstrdup(argv[i]);
5019
5359
newargz[argc+1] = NULL;
5022
cat >> $cwrappersource <<EOF
5361
for (i=0; i<argc+1; i++)
5363
DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5371
cat >> $cwrappersource <<EOF
5372
execv("$SHELL",(char const **)newargz);
5376
cat >> $cwrappersource <<EOF
5023
5377
execv("$SHELL",newargz);
5026
cat >> $cwrappersource <<"EOF"
5382
cat >> $cwrappersource <<"EOF"
5047
basename (const char *name)
5404
base_name (const char *name)
5049
5406
const char *base;
5051
5408
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5052
5409
/* Skip over the disk name in MSDOS pathnames. */
5053
if (isalpha (name[0]) && name[1] == ':')
5410
if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5057
5414
for (base = name; *name; name++)
5058
5415
if (IS_DIR_SEPARATOR (*name))
5059
5416
base = name + 1;
5060
return (char *) base;
5421
check_executable(const char * path)
5425
DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5426
if ((!path) || (!*path))
5429
if ((stat (path, &st) >= 0) &&
5431
/* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5432
#if defined (S_IXOTH)
5433
((st.st_mode & S_IXOTH) == S_IXOTH) ||
5435
#if defined (S_IXGRP)
5436
((st.st_mode & S_IXGRP) == S_IXGRP) ||
5438
((st.st_mode & S_IXUSR) == S_IXUSR))
5445
/* Searches for the full path of the wrapper. Returns
5446
newly allocated full path name if found, NULL otherwise */
5064
fnqualify(const char *path)
5448
find_executable (const char* wrapper)
5453
/* static buffer for getcwd */
5068
5454
char tmp[LT_PATHMAX + 1];
5070
assert(path != NULL);
5072
/* Is it qualified already? */
5073
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5074
if (isalpha (path[0]) && path[1] == ':')
5075
return xstrdup (path);
5077
if (IS_DIR_SEPARATOR (path[0]))
5078
return xstrdup (path);
5080
/* prepend the current directory */
5081
/* doesn't handle '~' */
5458
DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5460
if ((wrapper == NULL) || (*wrapper == '\0'))
5463
/* Absolute path? */
5464
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5465
if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5467
concat_name = xstrdup (wrapper);
5468
if (check_executable(concat_name))
5475
if (IS_DIR_SEPARATOR (wrapper[0]))
5477
concat_name = xstrdup (wrapper);
5478
if (check_executable(concat_name))
5482
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5486
for (p = wrapper; *p; p++)
5494
/* no slashes; search PATH */
5495
const char* path = getenv ("PATH");
5498
for (p = path; *p; p = p_next)
5502
for (q = p; *q; q++)
5503
if (IS_PATH_SEPARATOR(*q))
5506
p_next = (*q == '\0' ? q : q + 1);
5509
/* empty path: current directory */
5510
if (getcwd (tmp, LT_PATHMAX) == NULL)
5511
lt_fatal ("getcwd failed");
5512
tmp_len = strlen(tmp);
5513
concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5514
memcpy (concat_name, tmp, tmp_len);
5515
concat_name[tmp_len] = '/';
5516
strcpy (concat_name + tmp_len + 1, wrapper);
5520
concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5521
memcpy (concat_name, p, p_len);
5522
concat_name[p_len] = '/';
5523
strcpy (concat_name + p_len + 1, wrapper);
5525
if (check_executable(concat_name))
5530
/* not found in PATH; assume curdir */
5532
/* Relative path | not found in path: prepend cwd */
5082
5533
if (getcwd (tmp, LT_PATHMAX) == NULL)
5083
5534
lt_fatal ("getcwd failed");
5084
size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
5085
p = XMALLOC(char, size);
5086
sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
5535
tmp_len = strlen(tmp);
5536
concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5537
memcpy (concat_name, tmp, tmp_len);
5538
concat_name[tmp_len] = '/';
5539
strcpy (concat_name + tmp_len + 1, wrapper);
5541
if (check_executable(concat_name))
5336
5793
if test -n "$addlibs"; then
5337
5794
gentop="$output_objdir/${outputname}x"
5338
$show "${rm}r $gentop"
5339
$run ${rm}r "$gentop"
5340
$show "$mkdir $gentop"
5341
$run $mkdir "$gentop"
5343
if test "$status" -ne 0 && test ! -d "$gentop"; then
5346
5795
generated="$generated $gentop"
5348
# Add in members from convenience archives.
5349
for xlib in $addlibs; do
5350
# Extract the objects.
5352
[\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
5353
*) xabs=`pwd`"/$xlib" ;;
5355
xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
5356
xdir="$gentop/$xlib"
5358
$show "${rm}r $xdir"
5360
$show "$mkdir $xdir"
5363
if test "$status" -ne 0 && test ! -d "$xdir"; then
5366
# We will extract separately just the conflicting names and we will no
5367
# longer touch any unique names. It is faster to leave these extract
5368
# automatically by $AR in one run.
5369
$show "(cd $xdir && $AR x $xabs)"
5370
$run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
5371
if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
5374
$echo "$modename: warning: object name conflicts; renaming object files" 1>&2
5375
$echo "$modename: warning: to ensure that they will not overwrite" 1>&2
5376
$AR t "$xabs" | sort | uniq -cd | while read -r count name
5379
while test "$i" -le "$count"
5381
# Put our $i before any first dot (extension)
5382
# Never overwrite any file
5384
while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
5386
name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
5388
$show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
5389
$run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
5395
oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
5797
func_extract_archives $gentop $addlibs
5798
oldobjs="$oldobjs $func_extract_archives_result"
5399
5801
# Do each command in the archive commands.
5400
5802
if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5401
5803
cmds=$old_archive_from_new_cmds
5805
# POSIX demands no paths to be encoded in archives. We have
5806
# to avoid creating archives with duplicate basenames if we
5807
# might have to extract them afterwards, e.g., when creating a
5808
# static archive out of a convenience library, or when linking
5809
# the entirety of a libtool archive into another (currently
5810
# not supported by libtool).
5811
if (for obj in $oldobjs
5813
$echo "X$obj" | $Xsed -e 's%^.*/%%'
5814
done | sort | sort -uc >/dev/null 2>&1); then
5817
$echo "copying selected object files to avoid basename conflicts..."
5819
if test -z "$gentop"; then
5820
gentop="$output_objdir/${outputname}x"
5821
generated="$generated $gentop"
5823
$show "${rm}r $gentop"
5824
$run ${rm}r "$gentop"
5825
$show "$mkdir $gentop"
5826
$run $mkdir "$gentop"
5828
if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5833
save_oldobjs=$oldobjs
5836
for obj in $save_oldobjs
5838
objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5839
case " $oldobjs " in
5840
" ") oldobjs=$obj ;;
5843
# Make sure we don't pick an alternate name that also
5845
newobj=lt$counter-$objbase
5846
counter=`expr $counter + 1`
5847
case " $oldobjs " in
5848
*[\ /]"$newobj "*) ;;
5849
*) if test ! -f "$gentop/$newobj"; then break; fi ;;
5852
$show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5853
$run ln "$obj" "$gentop/$newobj" ||
5854
$run cp "$obj" "$gentop/$newobj"
5855
oldobjs="$oldobjs $gentop/$newobj"
5857
*) oldobjs="$oldobjs $obj" ;;
5403
5862
eval cmds=\"$old_archive_cmds\"
5405
5864
if len=`expr "X$cmds" : ".*"` &&
7064
7527
# ### END LIBTOOL TAG CONFIG: CXX
7529
# ### BEGIN LIBTOOL TAG CONFIG: F77
7531
# Libtool was configured on host dancer64:
7533
# Shell to use when invoking shell scripts.
7536
# Whether or not to build shared libraries.
7537
build_libtool_libs=no
7539
# Whether or not to build static libraries.
7542
# Whether or not to add -lc for building shared libraries.
7543
build_libtool_need_lc=no
7545
# Whether or not to disallow shared libs when runtime libs are static
7546
allow_libtool_libs_with_static_runtimes=no
7548
# Whether or not to optimize for fast installation.
7549
fast_install=needless
7553
host=x86_64-unknown-linux-gnu
7558
build=x86_64-unknown-linux-gnu
7561
# An echo program that does not interpret backslashes.
7571
# LTCC compiler flags.
7572
LTCFLAGS="-g -O2 -D_REENTRANT -DNDEBUG -ffast-math -fstrict-aliasing -funroll-loops"
7574
# A language-specific compiler.
7577
# Is the compiler the GNU C compiler?
7581
EGREP="/bin/grep -E"
7583
# The linker used to build libraries.
7584
LD="/usr/bin/ld -m elf_x86_64"
7586
# Whether we need hard or soft links.
7589
# A BSD-compatible nm program.
7592
# A symbol stripping program
7595
# Used to examine libraries when file_magic_cmd begins "file"
7598
# Used on cygwin: DLL creation program.
7601
# Used on cygwin: object dumper.
7604
# Used on cygwin: assembler.
7607
# The name of the directory that contains temporary libtool files.
7610
# How to create reloadable object files.
7612
reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"
7614
# How to pass a linker flag through the compiler.
7617
# Object file suffix (normally "o").
7620
# Old archive suffix (normally "a").
7623
# Shared library suffix (normally ".so").
7626
# Executable file suffix (normally "").
7629
# Additional compiler flags for building library objects.
7633
# What is the maximum length of a command?
7636
# Does compiler simultaneously support -c and -o options?
7639
# Must we lock files when doing compilation?
7642
# Do we need the lib prefix for modules?
7645
# Do we need a version for libraries?
7648
# Whether dlopen is supported.
7649
dlopen_support=unknown
7651
# Whether dlopen of programs is supported.
7654
# Whether dlopen of statically linked programs is supported.
7655
dlopen_self_static=unknown
7657
# Compiler flag to prevent dynamic linking.
7658
link_static_flag="-static"
7660
# Compiler flag to turn off builtin functions.
7663
# Compiler flag to allow reflexive dlopens.
7664
export_dynamic_flag_spec="\${wl}--export-dynamic"
7666
# Compiler flag to generate shared objects directly from archives.
7667
whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive"
7669
# Compiler flag to generate thread-safe objects.
7670
thread_safe_flag_spec=""
7672
# Library versioning type.
7675
# Format of library name prefix.
7676
libname_spec="lib\$name"
7678
# List of archive names. First name is the real one, the rest are links.
7679
# The last name is the one that the linker finds with -lNAME.
7680
library_names_spec="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}"
7682
# The coded name of the library, if different from the real name.
7683
soname_spec="\${libname}\${release}\${shared_ext}\$major"
7685
# Commands used to build and install an old-style archive.
7687
old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB \$oldlib"
7688
old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$oldlib"
7689
old_postuninstall_cmds=""
7691
# Create an old-style archive from a shared archive.
7692
old_archive_from_new_cmds=""
7694
# Create a temporary old-style archive to link instead of a shared archive.
7695
old_archive_from_expsyms_cmds=""
7697
# Commands used to build and install a shared archive.
7698
archive_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib"
7699
archive_expsym_cmds="\$echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~
7700
cat \$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~
7701
\$echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~
7702
\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-version-script \${wl}\$output_objdir/\$libname.ver -o \$lib"
7704
postuninstall_cmds=""
7706
# Commands used to build a loadable module (assumed same as above if empty)
7708
module_expsym_cmds=""
7710
# Commands to strip libraries.
7711
old_striplib="strip --strip-debug"
7712
striplib="strip --strip-unneeded"
7714
# Dependencies to place before the objects being linked to create a
7718
# Dependencies to place after the objects being linked to create a
7722
# Dependencies to place before the objects being linked to create a
7726
# Dependencies to place after the objects being linked to create a
7730
# The library search path used internally by the compiler when linking
7732
compiler_lib_search_path=""
7734
# Method to check whether dependent libraries are shared objects.
7735
deplibs_check_method="pass_all"
7737
# Command to use when deplibs_check_method == file_magic.
7738
file_magic_cmd="\$MAGIC_CMD"
7740
# Flag that allows shared libraries with undefined symbols to be built.
7741
allow_undefined_flag=""
7743
# Flag that forces no undefined symbols.
7744
no_undefined_flag=""
7746
# Commands used to finish a libtool library installation in a directory.
7747
finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"
7749
# Same as above, but a single script fragment to be evaled but not shown.
7752
# Take the output of nm and produce a listing of raw symbols and C names.
7753
global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'"
7755
# Transform the output of nm in a proper C declaration
7756
global_symbol_to_cdecl="sed -n -e 's/^. .* \\(.*\\)\$/extern int \\1;/p'"
7758
# Transform the output of nm in a C name address pair
7759
global_symbol_to_c_name_address="sed -n -e 's/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p' -e 's/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'"
7761
# This is the shared library runtime path variable.
7762
runpath_var=LD_RUN_PATH
7764
# This is the shared library path variable.
7765
shlibpath_var=LD_LIBRARY_PATH
7767
# Is shlibpath searched before the hard-coded library search path?
7768
shlibpath_overrides_runpath=no
7770
# How to hardcode a shared library path into an executable.
7771
hardcode_action=immediate
7773
# Whether we should hardcode library paths into libraries.
7774
hardcode_into_libs=yes
7776
# Flag to hardcode $libdir into a binary during linking.
7777
# This must work even if $libdir does not exist.
7778
hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir"
7780
# If ld is used when linking, flag to hardcode $libdir into
7781
# a binary during linking. This must work even if $libdir does
7783
hardcode_libdir_flag_spec_ld=""
7785
# Whether we need a single -rpath flag with a separated argument.
7786
hardcode_libdir_separator=""
7788
# Set to yes if using DIR/libNAME during linking hardcodes DIR into the
7792
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7796
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7797
# the resulting binary.
7798
hardcode_shlibpath_var=unsupported
7800
# Set to yes if building a shared library automatically hardcodes DIR into the library
7801
# and all subsequent libraries and executables linked against it.
7802
hardcode_automatic=no
7804
# Variables whose values should be saved in libtool wrapper scripts and
7805
# restored at relink time.
7806
variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7808
# Whether libtool must link a program against all its dependency libraries.
7811
# Compile-time system search path for libraries
7812
sys_lib_search_path_spec=" /usr/lib/gcc/x86_64-linux-gnu/3.4.6/ /usr/lib/gcc/x86_64-linux-gnu/3.4.6/ /usr/lib/gcc/x86_64-linux-gnu/3.4.6/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/3.4.6/ /usr/lib/gcc/x86_64-linux-gnu/3.4.6/../../../../x86_64-linux-gnu/lib/ /usr/lib/gcc/x86_64-linux-gnu/3.4.6/../../../x86_64-linux-gnu/3.4.6/ /usr/lib/gcc/x86_64-linux-gnu/3.4.6/../../../ /lib/x86_64-linux-gnu/3.4.6/ /lib/ /usr/lib/x86_64-linux-gnu/3.4.6/ /usr/lib/"
7814
# Run-time system search path for libraries
7815
sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/ /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu "
7817
# Fix the shell variable $srcfile for the compiler.
7820
# Set to yes if exported symbols are required.
7821
always_export_symbols=no
7823
# The commands to list exported symbols.
7824
export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"
7826
# The commands to extract the exported symbol list from a shared archive.
7827
extract_expsyms_cmds=""
7829
# Symbols that should not be listed in the preloaded symbols.
7830
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7832
# Symbols that must always be exported.
7835
# ### END LIBTOOL TAG CONFIG: F77