8193
rhapsody* | darwin*)
8194
if test -n "$ac_tool_prefix"; then
8195
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8196
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8197
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8198
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8199
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8200
echo $ECHO_N "(cached) $ECHO_C" >&6
8202
if test -n "$DSYMUTIL"; then
8203
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209
test -z "$as_dir" && as_dir=.
8210
for ac_exec_ext in '' $ac_executable_extensions; do
8211
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8212
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8213
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8222
DSYMUTIL=$ac_cv_prog_DSYMUTIL
8223
if test -n "$DSYMUTIL"; then
8224
{ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8225
echo "${ECHO_T}$DSYMUTIL" >&6; }
8227
{ echo "$as_me:$LINENO: result: no" >&5
8228
echo "${ECHO_T}no" >&6; }
8233
if test -z "$ac_cv_prog_DSYMUTIL"; then
8234
ac_ct_DSYMUTIL=$DSYMUTIL
8235
# Extract the first word of "dsymutil", so it can be a program name with args.
8236
set dummy dsymutil; ac_word=$2
8237
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8238
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8239
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8240
echo $ECHO_N "(cached) $ECHO_C" >&6
8242
if test -n "$ac_ct_DSYMUTIL"; then
8243
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249
test -z "$as_dir" && as_dir=.
8250
for ac_exec_ext in '' $ac_executable_extensions; do
8251
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8252
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8253
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8262
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8263
if test -n "$ac_ct_DSYMUTIL"; then
8264
{ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8265
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8267
{ echo "$as_me:$LINENO: result: no" >&5
8268
echo "${ECHO_T}no" >&6; }
8271
if test "x$ac_ct_DSYMUTIL" = x; then
8274
case $cross_compiling:$ac_tool_warned in
8276
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8277
whose name does not start with the host triplet. If you think this
8278
configuration is useful to you, please write to autoconf@gnu.org." >&5
8279
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8280
whose name does not start with the host triplet. If you think this
8281
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8282
ac_tool_warned=yes ;;
8284
DSYMUTIL=$ac_ct_DSYMUTIL
8287
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8290
if test -n "$ac_tool_prefix"; then
8291
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8292
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8293
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8294
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8295
if test "${ac_cv_prog_NMEDIT+set}" = set; then
8296
echo $ECHO_N "(cached) $ECHO_C" >&6
8298
if test -n "$NMEDIT"; then
8299
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8301
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305
test -z "$as_dir" && as_dir=.
8306
for ac_exec_ext in '' $ac_executable_extensions; do
8307
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8309
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318
NMEDIT=$ac_cv_prog_NMEDIT
8319
if test -n "$NMEDIT"; then
8320
{ echo "$as_me:$LINENO: result: $NMEDIT" >&5
8321
echo "${ECHO_T}$NMEDIT" >&6; }
8323
{ echo "$as_me:$LINENO: result: no" >&5
8324
echo "${ECHO_T}no" >&6; }
8329
if test -z "$ac_cv_prog_NMEDIT"; then
8330
ac_ct_NMEDIT=$NMEDIT
8331
# Extract the first word of "nmedit", so it can be a program name with args.
8332
set dummy nmedit; ac_word=$2
8333
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8334
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8335
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8336
echo $ECHO_N "(cached) $ECHO_C" >&6
8338
if test -n "$ac_ct_NMEDIT"; then
8339
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345
test -z "$as_dir" && as_dir=.
8346
for ac_exec_ext in '' $ac_executable_extensions; do
8347
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348
ac_cv_prog_ac_ct_NMEDIT="nmedit"
8349
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8358
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8359
if test -n "$ac_ct_NMEDIT"; then
8360
{ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8361
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8363
{ echo "$as_me:$LINENO: result: no" >&5
8364
echo "${ECHO_T}no" >&6; }
8367
if test "x$ac_ct_NMEDIT" = x; then
8370
case $cross_compiling:$ac_tool_warned in
8372
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8373
whose name does not start with the host triplet. If you think this
8374
configuration is useful to you, please write to autoconf@gnu.org." >&5
8375
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8376
whose name does not start with the host triplet. If you think this
8377
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8378
ac_tool_warned=yes ;;
8380
NMEDIT=$ac_ct_NMEDIT
8383
NMEDIT="$ac_cv_prog_NMEDIT"
8387
{ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8388
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8389
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8390
echo $ECHO_N "(cached) $ECHO_C" >&6
8392
lt_cv_apple_cc_single_mod=no
8393
if test -z "${LT_MULTI_MODULE}"; then
8394
# By default we will add the -single_module flag. You can override
8395
# by either setting the environment variable LT_MULTI_MODULE
8396
# non-empty at configure time, or by adding -multi_module to the
8398
echo "int foo(void){return 1;}" > conftest.c
8399
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8400
-dynamiclib ${wl}-single_module conftest.c
8401
if test -f libconftest.dylib; then
8402
lt_cv_apple_cc_single_mod=yes
8403
rm -rf libconftest.dylib*
8408
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8409
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8410
{ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8411
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8412
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8413
echo $ECHO_N "(cached) $ECHO_C" >&6
8415
lt_cv_ld_exported_symbols_list=no
8416
save_LDFLAGS=$LDFLAGS
8417
echo "_main" > conftest.sym
8418
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8419
cat >conftest.$ac_ext <<_ACEOF
8422
cat confdefs.h >>conftest.$ac_ext
8423
cat >>conftest.$ac_ext <<_ACEOF
8424
/* end confdefs.h. */
8434
rm -f conftest.$ac_objext conftest$ac_exeext
8435
if { (ac_try="$ac_link"
8437
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438
*) ac_try_echo=$ac_try;;
8440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441
(eval "$ac_link") 2>conftest.er1
8443
grep -v '^ *+' conftest.er1 >conftest.err
8445
cat conftest.err >&5
8446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447
(exit $ac_status); } && {
8448
test -z "$ac_c_werror_flag" ||
8449
test ! -s conftest.err
8450
} && test -s conftest$ac_exeext &&
8451
$as_test_x conftest$ac_exeext; then
8452
lt_cv_ld_exported_symbols_list=yes
8454
echo "$as_me: failed program was:" >&5
8455
sed 's/^/| /' conftest.$ac_ext >&5
8457
lt_cv_ld_exported_symbols_list=no
8460
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8461
conftest$ac_exeext conftest.$ac_ext
8462
LDFLAGS="$save_LDFLAGS"
8465
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8466
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8468
rhapsody* | darwin1.[0123])
8469
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8471
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8473
# if running on 10.5 or later, the deployment target defaults
8474
# to the OS version, if on x86, and 10.4, the deployment
8475
# target defaults to 10.4. Don't you love it?
8476
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8477
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8478
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8480
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8482
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8486
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8487
_lt_dar_single_mod='$single_module'
8489
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8490
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8492
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8494
if test "$DSYMUTIL" != ":"; then
8495
_lt_dsymutil="~$DSYMUTIL \$lib || :"
8186
8503
enable_dlopen=no
8187
8504
enable_win32_dll=no
12376
12714
darwin* | rhapsody*)
12378
rhapsody* | darwin1.[012])
12379
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12382
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12383
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12385
case ${MACOSX_DEPLOYMENT_TARGET} in
12387
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12390
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12396
12715
archive_cmds_need_lc_CXX=no
12397
12716
hardcode_direct_CXX=no
12398
12717
hardcode_automatic_CXX=yes
12399
12718
hardcode_shlibpath_var_CXX=unsupported
12400
12719
whole_archive_flag_spec_CXX=''
12401
12720
link_all_deplibs_CXX=yes
12403
if test "$GXX" = yes ; then
12404
lt_int_apple_cc_single_mod=no
12721
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12722
if test "$GXX" = yes ; then
12405
12723
output_verbose_link_cmd='echo'
12406
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12407
lt_int_apple_cc_single_mod=yes
12724
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12725
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12726
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12727
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12728
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12729
archive_cmds_CXX="\$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${_lt_dsymutil}"
12730
archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
12409
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12410
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12412
archive_cmds_CXX='$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'
12414
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12415
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12416
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12417
archive_expsym_cmds_CXX='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}'
12419
archive_expsym_cmds_CXX='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}'
12421
module_expsym_cmds_CXX='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}'
12423
12733
case $cc_basename in