2262
2471
# Let the user override the test.
2263
2472
lt_cv_path_NM="$NM"
2265
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2266
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2268
test -z "$ac_dir" && ac_dir=.
2269
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2270
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2271
# Check to see if the nm accepts a BSD-compat flag.
2272
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2273
# nm: unknown option "B" ignored
2274
# Tru64's nm complains that /dev/null is an invalid object file
2275
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2276
*/dev/null* | *'Invalid file or object type'*)
2277
lt_cv_path_NM="$tmp_nm -B"
2281
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2283
lt_cv_path_NM="$tmp_nm -p"
2474
lt_nm_to_check="${ac_tool_prefix}nm"
2475
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2476
lt_nm_to_check="$lt_nm_to_check nm"
2478
for lt_tmp_nm in $lt_nm_to_check; do
2479
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2480
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2482
test -z "$ac_dir" && ac_dir=.
2483
tmp_nm="$ac_dir/$lt_tmp_nm"
2484
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2485
# Check to see if the nm accepts a BSD-compat flag.
2486
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2487
# nm: unknown option "B" ignored
2488
# Tru64's nm complains that /dev/null is an invalid object file
2489
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2490
*/dev/null* | *'Invalid file or object type'*)
2491
lt_cv_path_NM="$tmp_nm -B"
2287
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2288
continue # so that we can try to find one that supports BSD flags
2495
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2497
lt_cv_path_NM="$tmp_nm -p"
2501
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2502
continue # so that we can try to find one that supports BSD flags
2295
2511
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2297
2513
NM="$lt_cv_path_NM"
2531
2731
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2532
2732
test "$enable_shared" = yes && enable_static=no
2535
darwin* | rhapsody*)
2536
if test "$GCC" = yes; then
2537
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2539
rhapsody* | darwin1.[[012]])
2540
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2543
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2544
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2546
case ${MACOSX_DEPLOYMENT_TARGET} in
2548
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2551
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2557
output_verbose_link_cmd='echo'
2558
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2559
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2560
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2561
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2562
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2563
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2564
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2565
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2566
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2567
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2569
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2573
2736
AC_MSG_RESULT([$enable_shared])
2863
3046
echo EXPORTS > $output_objdir/$soname.def;
2864
3047
cat $export_symbols >> $output_objdir/$soname.def;
2866
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3049
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2868
3051
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2872
darwin* | rhapsody*)
2873
if test "$GXX" = yes; then
2874
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2876
rhapsody* | darwin1.[[012]])
2877
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2880
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2881
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2883
case ${MACOSX_DEPLOYMENT_TARGET} in
2885
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2888
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3054
darwin* | rhapsody*)
3056
rhapsody* | darwin1.[[012]])
3057
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3060
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3061
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3063
case ${MACOSX_DEPLOYMENT_TARGET} in
3065
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3068
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2894
lt_int_apple_cc_single_mod=no
2895
output_verbose_link_cmd='echo'
2896
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2897
lt_int_apple_cc_single_mod=yes
2899
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2900
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2902
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2904
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3074
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3075
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3076
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3077
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3078
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3079
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2906
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2907
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2908
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2910
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2912
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2913
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2914
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2915
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2916
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2917
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2919
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3081
if test "$GXX" = yes ; then
3082
lt_int_apple_cc_single_mod=no
3083
output_verbose_link_cmd='echo'
3084
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3085
lt_int_apple_cc_single_mod=yes
3087
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3088
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3090
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3092
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3093
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3094
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3095
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3097
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3099
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3101
case $cc_basename in
3103
output_verbose_link_cmd='echo'
3104
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3105
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3106
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3107
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3108
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3111
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2924
3118
case $cc_basename in
2926
3120
# FIXME: insert proper C++ library support
2927
3121
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2930
3124
# Green Hills C++ Compiler
2931
3125
# FIXME: insert proper C++ library support
2932
3126
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3121
3324
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3122
3325
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3126
3329
with_gnu_ld=yes
3330
# version 8.0 and above of icpc choke on multiply defined symbols
3331
# if we add $predep_objects and $postdep_objects, however 7.1 and
3332
# earlier do not add the objects themselves.
3333
case `$CC -V 2>&1` in
3335
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3336
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3338
*) # Version 8.0 or newer
3341
ia64*) tmp_idyn=' -i_dynamic';;
3343
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3344
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3127
3347
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3128
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3129
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3130
3348
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3131
3349
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3132
3350
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3353
# Portland Group C++ compiler
3354
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3355
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3357
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3358
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3359
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3136
3363
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3137
3364
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3345
3575
case $cc_basename in
3347
3577
# Sun C++ 4.2, 5.x and Centerline C++
3578
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3348
3579
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3349
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3580
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3350
3581
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3351
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3582
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3353
3584
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3354
3585
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3355
3586
case $host_os in
3356
solaris2.[0-5] | solaris2.[0-5].*) ;;
3587
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3358
3589
# The C++ compiler is used as linker so we must use $wl
3359
3590
# flag to pass the commands to the underlying system
3591
# linker. We must also pass each convience library through
3592
# to the system linker between allextract/defaultextract.
3593
# The C++ compiler will combine linker options so we
3594
# cannot just pass the convience library names through
3361
3596
# Supported since Solaris 2.6 (maybe 2.5.1?)
3362
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3597
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3365
3600
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3367
# Commands to make compiler produce verbose output that lists
3368
# what "hidden" libraries, object files and flags are used when
3369
# linking a shared library.
3371
# There doesn't appear to be a way to prevent this compiler from
3372
# explicitly linking system object files so we need to strip them
3373
# from the output so that they don't get included in the library
3375
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3602
output_verbose_link_cmd='echo'
3377
3604
# Archives containing C++ object files must be created using
3378
3605
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3421
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3422
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3648
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3649
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3650
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3651
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3652
runpath_var='LD_RUN_PATH'
3654
case $cc_basename in
3656
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3657
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3660
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3661
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3665
sysv5* | sco3.2v5* | sco5v6*)
3666
# Note: We can NOT use -z defs as we might desire, because we do not
3667
# link with -lc, and that would cause any symbols used from libc to
3668
# always be unresolved, which means just about no library would
3669
# ever link correctly. If we're not using GNU ld we use -z text
3670
# though, which does catch some bad symbols but isn't as heavy-handed
3672
# For security reasons, it is highly recommended that you always
3673
# use absolute paths for naming shared libraries, and exclude the
3674
# DT_RUNPATH tag from executables and libraries. But doing so
3675
# requires that you compile everything twice, which is a pain.
3676
# So that behaviour is only enabled if SCOABSPATH is set to a
3677
# non-empty value in the environment. Most likely only useful for
3678
# creating official distributions of packages.
3679
# This is a hack until libtool officially supports absolute path
3680
# names for shared libraries.
3681
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3682
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3683
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3684
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3685
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3686
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3687
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3688
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3689
runpath_var='LD_RUN_PATH'
3691
case $cc_basename in
3693
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3694
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3697
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3698
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3425
3703
case $cc_basename in
3427
3705
# NonStop-UX NCC 3.20
3428
3706
# FIXME: insert proper C++ library support
3429
3707
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5099
5527
echo EXPORTS > $output_objdir/$soname.def;
5100
5528
cat $export_symbols >> $output_objdir/$soname.def;
5102
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5108
netbsd* | knetbsd*-gnu)
5530
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5532
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5537
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5538
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5539
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5540
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5541
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5542
# Instead, shared libraries are loaded at an image base (0x10000000 by
5543
# default) and relocated if they conflict, which is a slow very memory
5544
# consuming and fragmenting process. To avoid this, we pick a random,
5545
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5546
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5547
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5548
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5552
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5554
case $cc_basename,$host_cpu in
5555
pgcc*) # Portland Group C compiler
5556
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5557
tmp_addflag=' $pic_flag'
5559
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5560
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5561
tmp_addflag=' $pic_flag -Mnomain' ;;
5562
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5563
tmp_addflag=' -i_dynamic' ;;
5564
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5565
tmp_addflag=' -i_dynamic -nofor_main' ;;
5566
ifc* | ifort*) # Intel Fortran compiler
5567
tmp_addflag=' -nofor_main' ;;
5569
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5571
if test $supports_anon_versioning = yes; then
5572
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5573
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5574
$echo "local: *; };" >> $output_objdir/$libname.ver~
5575
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5578
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5109
5583
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5110
5584
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5352
5825
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5353
5826
# FIXME: Should let the user specify the lib program.
5354
5827
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5355
fix_srcfile_path='`cygpath -w "$srcfile"`'
5828
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5356
5829
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5359
5832
darwin* | rhapsody*)
5360
if test "$GXX" = yes ; then
5834
rhapsody* | darwin1.[[012]])
5835
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5838
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5839
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5841
case ${MACOSX_DEPLOYMENT_TARGET} in
5843
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5846
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5361
5852
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5363
rhapsody* | darwin1.[[012]])
5364
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5367
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5368
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5370
case ${MACOSX_DEPLOYMENT_TARGET} in
5372
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5375
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5381
lt_int_apple_cc_single_mod=no
5853
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5854
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5855
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5856
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5857
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5858
if test "$GCC" = yes ; then
5382
5859
output_verbose_link_cmd='echo'
5383
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5384
lt_int_apple_cc_single_mod=yes
5386
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5387
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5389
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5391
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5392
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5393
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5394
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5396
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5860
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5861
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5862
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5863
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5864
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5866
case $cc_basename in
5868
output_verbose_link_cmd='echo'
5869
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5870
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5871
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5872
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5398
5873
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5399
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5400
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5401
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5402
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5403
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5405
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5876
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5459
5932
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5463
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5936
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5937
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5939
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5941
if test "$with_gnu_ld" = no; then
5942
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5943
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5945
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5946
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5948
# hardcode_minus_L: Not really in the search PATH,
5949
# but as the default location of the library.
5950
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5955
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5466
5958
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5961
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5469
5964
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5475
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5970
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5973
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5478
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5976
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5482
5980
if test "$with_gnu_ld" = no; then
5485
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5981
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5982
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5486
5986
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5487
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5488
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5489
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5492
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5493
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5494
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5496
# hardcode_minus_L: Not really in the search PATH,
5497
# but as the default location of the library.
5498
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5987
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5988
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5501
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5502
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5503
5991
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5504
5992
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5685
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5686
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5687
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5688
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5689
hardcode_runpath_var=yes
5690
runpath_var=LD_RUN_PATH
5693
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5694
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5695
if test "$GCC" = yes; then
5696
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5698
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5700
runpath_var='LD_RUN_PATH'
5701
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5705
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5706
# $CC -shared without GNU ld will not create a library from C++
5707
# object files and a static libstdc++, better avoid it by now
5708
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5709
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5710
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5711
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5712
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5713
runpath_var='LD_RUN_PATH'
6177
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6178
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6179
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6180
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6181
runpath_var='LD_RUN_PATH'
6183
if test "$GCC" = yes; then
6184
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6185
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6187
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6188
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6192
sysv5* | sco3.2v5* | sco5v6*)
6193
# Note: We can NOT use -z defs as we might desire, because we do not
6194
# link with -lc, and that would cause any symbols used from libc to
6195
# always be unresolved, which means just about no library would
6196
# ever link correctly. If we're not using GNU ld we use -z text
6197
# though, which does catch some bad symbols but isn't as heavy-handed
6199
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6200
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6201
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6202
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6203
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6204
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6205
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6206
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6207
runpath_var='LD_RUN_PATH'
6209
if test "$GCC" = yes; then
6210
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6211
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6213
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6214
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5913
6413
SED=$lt_cv_path_SED
5915
6415
AC_MSG_RESULT([$SED])
5919
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
5920
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
5921
dnl also defines GSTUFF_PKG_ERRORS on error
5922
AC_DEFUN(PKG_CHECK_MODULES, [
5925
if test -z "$PKG_CONFIG"; then
5926
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
5929
if test "$PKG_CONFIG" = "no" ; then
5930
echo "*** The pkg-config script could not be found. Make sure it is"
5931
echo "*** in your path, or set the PKG_CONFIG environment variable"
5932
echo "*** to the full path to pkg-config."
5933
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
5935
PKG_CONFIG_MIN_VERSION=0.9.0
5936
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5937
AC_MSG_CHECKING(for $2)
5939
if $PKG_CONFIG --exists "$2" ; then
5943
AC_MSG_CHECKING($1_CFLAGS)
5944
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
5945
AC_MSG_RESULT($$1_CFLAGS)
5947
AC_MSG_CHECKING($1_LIBS)
5948
$1_LIBS=`$PKG_CONFIG --libs "$2"`
5949
AC_MSG_RESULT($$1_LIBS)
5953
## If we have a custom action on failure, don't print errors, but
5954
## do set a variable so people can do so.
5955
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
5956
ifelse([$4], ,echo $$1_PKG_ERRORS,)
5962
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5963
echo "*** See http://www.freedesktop.org/software/pkgconfig"
5967
if test $succeeded = yes; then
5968
ifelse([$3], , :, [$3])
5970
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
5977
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
5978
# Generated from amversion.in; do not edit by hand.
6418
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
6420
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
5980
6422
# This program is free software; you can redistribute it and/or modify
5981
6423
# it under the terms of the GNU General Public License as published by
5982
# the Free Software Foundation; either version 2, or (at your option)
5983
# any later version.
5985
# This program is distributed in the hope that it will be useful,
5986
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5987
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5988
# GNU General Public License for more details.
6424
# the Free Software Foundation; either version 2 of the License, or
6425
# (at your option) any later version.
6427
# This program is distributed in the hope that it will be useful, but
6428
# WITHOUT ANY WARRANTY; without even the implied warranty of
6429
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6430
# General Public License for more details.
5990
6432
# You should have received a copy of the GNU General Public License
5991
6433
# along with this program; if not, write to the Free Software
5992
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6434
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6436
# As a special exception to the GNU General Public License, if you
6437
# distribute this file as part of a program that contains a
6438
# configuration script generated by Autoconf, you may include it under
6439
# the same distribution terms that you use for the rest of that program.
6441
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
6442
# ----------------------------------
6443
AC_DEFUN([PKG_PROG_PKG_CONFIG],
6444
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
6445
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
6446
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
6447
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6448
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
6450
if test -n "$PKG_CONFIG"; then
6451
_pkg_min_version=m4_default([$1], [0.9.0])
6452
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
6453
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6454
AC_MSG_RESULT([yes])
6461
])# PKG_PROG_PKG_CONFIG
6463
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
6465
# Check to see whether a particular set of modules exists. Similar
6466
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
6469
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
6470
# this or PKG_CHECK_MODULES is called, or make sure to call
6471
# PKG_CHECK_EXISTS manually
6472
# --------------------------------------------------------------
6473
AC_DEFUN([PKG_CHECK_EXISTS],
6474
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
6475
if test -n "$PKG_CONFIG" && \
6476
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
6477
m4_ifval([$2], [$2], [:])
6478
m4_ifvaln([$3], [else
6483
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
6484
# ---------------------------------------------
6485
m4_define([_PKG_CONFIG],
6486
[if test -n "$PKG_CONFIG"; then
6487
if test -n "$$1"; then
6490
PKG_CHECK_EXISTS([$3],
6491
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
6499
# _PKG_SHORT_ERRORS_SUPPORTED
6500
# -----------------------------
6501
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
6502
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
6503
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6504
_pkg_short_errors_supported=yes
6506
_pkg_short_errors_supported=no
6508
])# _PKG_SHORT_ERRORS_SUPPORTED
6511
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
6512
# [ACTION-IF-NOT-FOUND])
6515
# Note that if there is a possibility the first call to
6516
# PKG_CHECK_MODULES might not happen, you should be sure to include an
6517
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
6520
# --------------------------------------------------------------
6521
AC_DEFUN([PKG_CHECK_MODULES],
6522
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
6523
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
6524
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
6527
AC_MSG_CHECKING([for $1])
6529
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
6530
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
6532
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
6533
and $1[]_LIBS to avoid the need to call pkg-config.
6534
See the pkg-config man page for more details.])
6536
if test $pkg_failed = yes; then
6537
_PKG_SHORT_ERRORS_SUPPORTED
6538
if test $_pkg_short_errors_supported = yes; then
6539
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
6541
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6543
# Put the nasty error message in config.log where it belongs
6544
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
6546
ifelse([$4], , [AC_MSG_ERROR(dnl
6547
[Package requirements ($2) were not met:
6551
Consider adjusting the PKG_CONFIG_PATH environment variable if you
6552
installed software in a non-standard prefix.
6556
[AC_MSG_RESULT([no])
6558
elif test $pkg_failed = untried; then
6559
ifelse([$4], , [AC_MSG_FAILURE(dnl
6560
[The pkg-config script could not be found or is too old. Make sure it
6561
is in your PATH or set the PKG_CONFIG environment variable to the full
6566
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
6569
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
6570
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
6571
AC_MSG_RESULT([yes])
6572
ifelse([$3], , :, [$3])
6574
])# PKG_CHECK_MODULES
6576
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
6578
# This file is free software; the Free Software Foundation
6579
# gives unlimited permission to copy and/or distribute it,
6580
# with or without modifications, as long as this notice is preserved.
5994
6582
# AM_AUTOMAKE_VERSION(VERSION)
5995
6583
# ----------------------------
5996
6584
# Automake X.Y traces this macro to ensure aclocal.m4 has been
5997
6585
# generated from the m4 files accompanying Automake X.Y.
5998
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
6586
# (This private macro should not be called outside this file.)
6587
AC_DEFUN([AM_AUTOMAKE_VERSION],
6588
[am__api_version='1.10'
6589
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6590
dnl require some minimum version. Point them to the right macro.
6591
m4_if([$1], [1.10], [],
6592
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6595
# _AM_AUTOCONF_VERSION(VERSION)
6596
# -----------------------------
6597
# aclocal traces this macro to find the Autoconf version.
6598
# This is a private macro too. Using m4_define simplifies
6599
# the logic in aclocal, which can simply ignore this definition.
6600
m4_define([_AM_AUTOCONF_VERSION], [])
6000
6602
# AM_SET_CURRENT_AUTOMAKE_VERSION
6001
6603
# -------------------------------
6002
# Call AM_AUTOMAKE_VERSION so it can be traced.
6604
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6003
6605
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6004
6606
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6005
[AM_AUTOMAKE_VERSION([1.8.5])])
6009
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6011
# This program is free software; you can redistribute it and/or modify
6012
# it under the terms of the GNU General Public License as published by
6013
# the Free Software Foundation; either version 2, or (at your option)
6014
# any later version.
6016
# This program is distributed in the hope that it will be useful,
6017
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6018
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6019
# GNU General Public License for more details.
6021
# You should have received a copy of the GNU General Public License
6022
# along with this program; if not, write to the Free Software
6023
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6607
[AM_AUTOMAKE_VERSION([1.10])dnl
6608
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6610
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6612
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6614
# This file is free software; the Free Software Foundation
6615
# gives unlimited permission to copy and/or distribute it,
6616
# with or without modifications, as long as this notice is preserved.
6026
6618
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6027
6619
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6363
6922
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6366
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
6368
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6370
# This program is free software; you can redistribute it and/or modify
6371
# it under the terms of the GNU General Public License as published by
6372
# the Free Software Foundation; either version 2, or (at your option)
6373
# any later version.
6375
# This program is distributed in the hope that it will be useful,
6376
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6377
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6378
# GNU General Public License for more details.
6380
# You should have received a copy of the GNU General Public License
6381
# along with this program; if not, write to the Free Software
6382
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6387
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
6388
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6390
# Do all the work for Automake. -*- Autoconf -*-
6392
# This macro actually does too much some checks are only needed if
6925
# Do all the work for Automake. -*- Autoconf -*-
6927
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
6928
# 2005, 2006 Free Software Foundation, Inc.
6930
# This file is free software; the Free Software Foundation
6931
# gives unlimited permission to copy and/or distribute it,
6932
# with or without modifications, as long as this notice is preserved.
6936
# This macro actually does too much. Some checks are only needed if
6393
6937
# your package does certain things. But this isn't really a big deal.
6395
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6396
# Free Software Foundation, Inc.
6398
# This program is free software; you can redistribute it and/or modify
6399
# it under the terms of the GNU General Public License as published by
6400
# the Free Software Foundation; either version 2, or (at your option)
6401
# any later version.
6403
# This program is distributed in the hope that it will be useful,
6404
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6405
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6406
# GNU General Public License for more details.
6408
# You should have received a copy of the GNU General Public License
6409
# along with this program; if not, write to the Free Software
6410
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6415
6939
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6416
6940
# AM_INIT_AUTOMAKE([OPTIONS])
6417
6941
# -----------------------------------------------
6512
7048
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7050
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7052
# This file is free software; the Free Software Foundation
7053
# gives unlimited permission to copy and/or distribute it,
7054
# with or without modifications, as long as this notice is preserved.
6514
7056
# AM_PROG_INSTALL_SH
6515
7057
# ------------------
6516
7058
# Define $install_sh.
6518
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6520
# This program is free software; you can redistribute it and/or modify
6521
# it under the terms of the GNU General Public License as published by
6522
# the Free Software Foundation; either version 2, or (at your option)
6523
# any later version.
6525
# This program is distributed in the hope that it will be useful,
6526
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6527
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6528
# GNU General Public License for more details.
6530
# You should have received a copy of the GNU General Public License
6531
# along with this program; if not, write to the Free Software
6532
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6535
7059
AC_DEFUN([AM_PROG_INSTALL_SH],
6536
7060
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6537
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7061
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
6538
7062
AC_SUBST(install_sh)])
6541
# Copyright (C) 2003 Free Software Foundation, Inc.
6543
# This program is free software; you can redistribute it and/or modify
6544
# it under the terms of the GNU General Public License as published by
6545
# the Free Software Foundation; either version 2, or (at your option)
6546
# any later version.
6548
# This program is distributed in the hope that it will be useful,
6549
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6550
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6551
# GNU General Public License for more details.
6553
# You should have received a copy of the GNU General Public License
6554
# along with this program; if not, write to the Free Software
6555
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7064
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7066
# This file is free software; the Free Software Foundation
7067
# gives unlimited permission to copy and/or distribute it,
7068
# with or without modifications, as long as this notice is preserved.
6560
7072
# Check whether the underlying file-system supports filenames
6561
7073
# with a leading dot. For instance MS-DOS doesn't.
6570
7082
rmdir .tst 2>/dev/null
6571
7083
AC_SUBST([am__leading_dot])])
6573
# Add --enable-maintainer-mode option to configure.
6576
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
6577
# Free Software Foundation, Inc.
6579
# This program is free software; you can redistribute it and/or modify
6580
# it under the terms of the GNU General Public License as published by
6581
# the Free Software Foundation; either version 2, or (at your option)
6582
# any later version.
6584
# This program is distributed in the hope that it will be useful,
6585
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6586
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6587
# GNU General Public License for more details.
6589
# You should have received a copy of the GNU General Public License
6590
# along with this program; if not, write to the Free Software
6591
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7085
# Check to see how 'make' treats includes. -*- Autoconf -*-
7087
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7089
# This file is free software; the Free Software Foundation
7090
# gives unlimited permission to copy and/or distribute it,
7091
# with or without modifications, as long as this notice is preserved.
6596
AC_DEFUN([AM_MAINTAINER_MODE],
6597
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
6598
dnl maintainer-mode is disabled by default
6599
AC_ARG_ENABLE(maintainer-mode,
6600
[ --enable-maintainer-mode enable make rules and dependencies not useful
6601
(and sometimes confusing) to the casual installer],
6602
USE_MAINTAINER_MODE=$enableval,
6603
USE_MAINTAINER_MODE=no)
6604
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
6605
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
6606
MAINT=$MAINTAINER_MODE_TRUE
6611
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
6613
# Check to see how 'make' treats includes. -*- Autoconf -*-
6615
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6617
# This program is free software; you can redistribute it and/or modify
6618
# it under the terms of the GNU General Public License as published by
6619
# the Free Software Foundation; either version 2, or (at your option)
6620
# any later version.
6622
# This program is distributed in the hope that it will be useful,
6623
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6624
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6625
# GNU General Public License for more details.
6627
# You should have received a copy of the GNU General Public License
6628
# along with this program; if not, write to the Free Software
6629
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6634
7095
# AM_MAKE_INCLUDE()
6635
7096
# -----------------
6636
7097
# Check to see how make treats includes.
6673
7134
rm -f confinc confmf
6679
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
6681
# This program is free software; you can redistribute it and/or modify
6682
# it under the terms of the GNU General Public License as published by
6683
# the Free Software Foundation; either version 2, or (at your option)
6684
# any later version.
6686
# This program is distributed in the hope that it will be useful,
6687
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6688
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6689
# GNU General Public License for more details.
6691
# You should have received a copy of the GNU General Public License
6692
# along with this program; if not, write to the Free Software
6693
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7137
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
7138
# Free Software Foundation, Inc.
7140
# This file is free software; the Free Software Foundation
7141
# gives unlimited permission to copy and/or distribute it,
7142
# with or without modifications, as long as this notice is preserved.
7148
# Like AC_PROG_CC_C_O, but changed for automake.
7149
AC_DEFUN([AM_PROG_CC_C_O],
7150
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
7151
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7152
AC_REQUIRE_AUX_FILE([compile])dnl
7153
# FIXME: we rely on the cache variable name because
7154
# there is no other way.
7156
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
7157
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7158
# Losing compiler, so override with the script.
7159
# FIXME: It is wrong to rewrite CC.
7160
# But if we don't then we get into trouble of one sort or another.
7161
# A longer-term fix would be to have automake use am__CC in this case,
7162
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7163
CC="$am_aux_dir/compile $CC"
7165
dnl Make sure AC_PROG_CC is never called again, or it will override our
7167
m4_define([AC_PROG_CC],
7168
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
7171
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7173
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7174
# Free Software Foundation, Inc.
7176
# This file is free software; the Free Software Foundation
7177
# gives unlimited permission to copy and/or distribute it,
7178
# with or without modifications, as long as this notice is preserved.
6698
7182
# AM_MISSING_PROG(NAME, PROGRAM)
6699
7183
# ------------------------------
7207
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7209
# This file is free software; the Free Software Foundation
7210
# gives unlimited permission to copy and/or distribute it,
7211
# with or without modifications, as long as this notice is preserved.
6722
7213
# AM_PROG_MKDIR_P
6723
7214
# ---------------
6724
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6726
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
6728
# This program is free software; you can redistribute it and/or modify
6729
# it under the terms of the GNU General Public License as published by
6730
# the Free Software Foundation; either version 2, or (at your option)
6731
# any later version.
6733
# This program is distributed in the hope that it will be useful,
6734
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6735
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6736
# GNU General Public License for more details.
6738
# You should have received a copy of the GNU General Public License
6739
# along with this program; if not, write to the Free Software
6740
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6743
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6744
# created by `make install' are always world readable, even if the
6745
# installer happens to have an overly restrictive umask (e.g. 077).
6746
# This was a mistake. There are at least two reasons why we must not
6748
# - it causes special bits like SGID to be ignored,
6749
# - it may be too restrictive (some setups expect 775 directories).
6751
# Do not use -m 0755 and let people choose whatever they expect by
6754
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
6755
# Some implementations (such as Solaris 8's) are not thread-safe: if a
6756
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
6757
# concurrently, both version can detect that a/ is missing, but only
6758
# one can create it and the other will error out. Consequently we
6759
# restrict ourselves to GNU make (using the --version option ensures
7215
# Check for `mkdir -p'.
6761
7216
AC_DEFUN([AM_PROG_MKDIR_P],
6762
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6763
# Keeping the `.' argument allows $(mkdir_p) to be used without
6764
# argument. Indeed, we sometimes output rules like
6765
# $(mkdir_p) $(somedir)
6766
# where $(somedir) is conditionally defined.
6767
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
6768
# expensive solution, as it forces Make to start a sub-shell.)
6769
mkdir_p='mkdir -p -- .'
6771
# On NextStep and OpenStep, the `mkdir' command does not
6772
# recognize any option. It will interpret all options as
6773
# directories to create, and then abort because `.' already
6775
for d in ./-p ./--version;
6777
test -d $d && rmdir $d
6779
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6780
if test -f "$ac_aux_dir/mkinstalldirs"; then
6781
mkdir_p='$(mkinstalldirs)'
6783
mkdir_p='$(install_sh) -d'
6786
AC_SUBST([mkdir_p])])
6788
# Helper functions for option handling. -*- Autoconf -*-
6790
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6792
# This program is free software; you can redistribute it and/or modify
6793
# it under the terms of the GNU General Public License as published by
6794
# the Free Software Foundation; either version 2, or (at your option)
6795
# any later version.
6797
# This program is distributed in the hope that it will be useful,
6798
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6799
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6800
# GNU General Public License for more details.
6802
# You should have received a copy of the GNU General Public License
6803
# along with this program; if not, write to the Free Software
6804
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7217
[AC_PREREQ([2.60])dnl
7218
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7219
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7220
dnl while keeping a definition of mkdir_p for backward compatibility.
7221
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7222
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7223
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7224
dnl adjustment using top_builddir (which is defined more often than
7226
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7228
[[\\/$]]* | ?:[[\\/]]*) ;;
7229
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7233
# Helper functions for option handling. -*- Autoconf -*-
7235
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7237
# This file is free software; the Free Software Foundation
7238
# gives unlimited permission to copy and/or distribute it,
7239
# with or without modifications, as long as this notice is preserved.
6809
7243
# _AM_MANGLE_OPTION(NAME)
6810
7244
# -----------------------
6929
7340
if test "$cross_compiling" != no; then
6930
7341
AC_CHECK_TOOL([STRIP], [strip], :)
6932
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7343
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6933
7344
AC_SUBST([INSTALL_STRIP_PROGRAM])])
6935
m4_include([m4/gettext.m4])
6936
m4_include([m4/iconv.m4])
6937
m4_include([m4/lib-ld.m4])
6938
m4_include([m4/lib-link.m4])
6939
m4_include([m4/lib-prefix.m4])
6940
m4_include([m4/nls.m4])
6941
m4_include([m4/po.m4])
6942
m4_include([m4/progtest.m4])
7346
# Copyright (C) 2006 Free Software Foundation, Inc.
7348
# This file is free software; the Free Software Foundation
7349
# gives unlimited permission to copy and/or distribute it,
7350
# with or without modifications, as long as this notice is preserved.
7352
# _AM_SUBST_NOTMAKE(VARIABLE)
7353
# ---------------------------
7354
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
7355
# This macro is traced by Automake.
7356
AC_DEFUN([_AM_SUBST_NOTMAKE])
7358
# Check how to create a tarball. -*- Autoconf -*-
7360
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7362
# This file is free software; the Free Software Foundation
7363
# gives unlimited permission to copy and/or distribute it,
7364
# with or without modifications, as long as this notice is preserved.
7368
# _AM_PROG_TAR(FORMAT)
7369
# --------------------
7370
# Check how to create a tarball in format FORMAT.
7371
# FORMAT should be one of `v7', `ustar', or `pax'.
7373
# Substitute a variable $(am__tar) that is a command
7374
# writing to stdout a FORMAT-tarball containing the directory
7376
# tardir=directory && $(am__tar) > result.tar
7378
# Substitute a variable $(am__untar) that extract such
7379
# a tarball read from stdin.
7380
# $(am__untar) < result.tar
7381
AC_DEFUN([_AM_PROG_TAR],
7382
[# Always define AMTAR for backward compatibility.
7383
AM_MISSING_PROG([AMTAR], [tar])
7385
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7386
[m4_case([$1], [ustar],, [pax],,
7387
[m4_fatal([Unknown tar format])])
7388
AC_MSG_CHECKING([how to create a $1 tar archive])
7389
# Loop over all known methods to create a tar archive until one works.
7390
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7391
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
7392
# Do not fold the above two line into one, because Tru64 sh and
7393
# Solaris sh will not grok spaces in the rhs of `-'.
7394
for _am_tool in $_am_tools
7398
for _am_tar in tar gnutar gtar;
7400
AM_RUN_LOG([$_am_tar --version]) && break
7402
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7403
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7404
am__untar="$_am_tar -xf -"
7407
# Must skip GNU tar: if it does not support --format= it doesn't create
7408
# ustar tarball either.
7409
(tar --version) >/dev/null 2>&1 && continue
7410
am__tar='tar chf - "$$tardir"'
7411
am__tar_='tar chf - "$tardir"'
7412
am__untar='tar xf -'
7415
am__tar='pax -L -x $1 -w "$$tardir"'
7416
am__tar_='pax -L -x $1 -w "$tardir"'
7420
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7421
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7422
am__untar='cpio -i -H $1 -d'
7431
# If the value was cached, stop now. We just wanted to have am__tar
7432
# and am__untar set.
7433
test -n "${am_cv_prog_tar_$1}" && break
7435
# tar/untar a dummy directory, and stop if the command works
7438
echo GrepMe > conftest.dir/file
7439
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7441
if test -s conftest.tar; then
7442
AM_RUN_LOG([$am__untar <conftest.tar])
7443
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7448
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7449
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7451
AC_SUBST([am__untar])
7454
m4_include([m4m/gp-check-library.m4])
7455
m4_include([m4m/gp-check-popt.m4])
7456
m4_include([m4m/gp-check-shell-environment.m4])
7457
m4_include([m4m/gp-config-msg.m4])
7458
m4_include([m4m/gp-gettext-hack.m4])
7459
m4_include([m4m/gp-pkg-config.m4])
7460
m4_include([auto-m4/gettext.m4])
7461
m4_include([auto-m4/iconv.m4])
7462
m4_include([auto-m4/lib-ld.m4])
7463
m4_include([auto-m4/lib-link.m4])
7464
m4_include([auto-m4/lib-prefix.m4])
7465
m4_include([auto-m4/nls.m4])
7466
m4_include([auto-m4/po.m4])
7467
m4_include([auto-m4/progtest.m4])