7093
rhapsody* | darwin*)
7094
if test -n "$ac_tool_prefix"; then
7095
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7096
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7097
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7098
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7100
echo $ECHO_N "(cached) $ECHO_C" >&6
7102
if test -n "$DSYMUTIL"; then
7103
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109
test -z "$as_dir" && as_dir=.
7110
for ac_exec_ext in '' $ac_executable_extensions; do
7111
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7113
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7123
if test -n "$DSYMUTIL"; then
7124
{ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7125
echo "${ECHO_T}$DSYMUTIL" >&6; }
7127
{ echo "$as_me:$LINENO: result: no" >&5
7128
echo "${ECHO_T}no" >&6; }
7133
if test -z "$ac_cv_prog_DSYMUTIL"; then
7134
ac_ct_DSYMUTIL=$DSYMUTIL
7135
# Extract the first word of "dsymutil", so it can be a program name with args.
7136
set dummy dsymutil; ac_word=$2
7137
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7138
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7139
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7140
echo $ECHO_N "(cached) $ECHO_C" >&6
7142
if test -n "$ac_ct_DSYMUTIL"; then
7143
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149
test -z "$as_dir" && as_dir=.
7150
for ac_exec_ext in '' $ac_executable_extensions; do
7151
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7153
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7163
if test -n "$ac_ct_DSYMUTIL"; then
7164
{ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7165
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7167
{ echo "$as_me:$LINENO: result: no" >&5
7168
echo "${ECHO_T}no" >&6; }
7171
if test "x$ac_ct_DSYMUTIL" = x; then
7174
case $cross_compiling:$ac_tool_warned in
7176
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7177
whose name does not start with the host triplet. If you think this
7178
configuration is useful to you, please write to autoconf@gnu.org." >&5
7179
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7180
whose name does not start with the host triplet. If you think this
7181
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7182
ac_tool_warned=yes ;;
7184
DSYMUTIL=$ac_ct_DSYMUTIL
7187
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7190
if test -n "$ac_tool_prefix"; then
7191
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7192
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7193
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7194
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7196
echo $ECHO_N "(cached) $ECHO_C" >&6
7198
if test -n "$NMEDIT"; then
7199
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205
test -z "$as_dir" && as_dir=.
7206
for ac_exec_ext in '' $ac_executable_extensions; do
7207
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7209
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218
NMEDIT=$ac_cv_prog_NMEDIT
7219
if test -n "$NMEDIT"; then
7220
{ echo "$as_me:$LINENO: result: $NMEDIT" >&5
7221
echo "${ECHO_T}$NMEDIT" >&6; }
7223
{ echo "$as_me:$LINENO: result: no" >&5
7224
echo "${ECHO_T}no" >&6; }
7229
if test -z "$ac_cv_prog_NMEDIT"; then
7230
ac_ct_NMEDIT=$NMEDIT
7231
# Extract the first word of "nmedit", so it can be a program name with args.
7232
set dummy nmedit; ac_word=$2
7233
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7234
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7236
echo $ECHO_N "(cached) $ECHO_C" >&6
7238
if test -n "$ac_ct_NMEDIT"; then
7239
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245
test -z "$as_dir" && as_dir=.
7246
for ac_exec_ext in '' $ac_executable_extensions; do
7247
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7249
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7259
if test -n "$ac_ct_NMEDIT"; then
7260
{ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7261
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7263
{ echo "$as_me:$LINENO: result: no" >&5
7264
echo "${ECHO_T}no" >&6; }
7267
if test "x$ac_ct_NMEDIT" = x; then
7270
case $cross_compiling:$ac_tool_warned in
7272
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7273
whose name does not start with the host triplet. If you think this
7274
configuration is useful to you, please write to autoconf@gnu.org." >&5
7275
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7276
whose name does not start with the host triplet. If you think this
7277
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7278
ac_tool_warned=yes ;;
7280
NMEDIT=$ac_ct_NMEDIT
7283
NMEDIT="$ac_cv_prog_NMEDIT"
7287
{ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7288
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7289
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7290
echo $ECHO_N "(cached) $ECHO_C" >&6
7292
lt_cv_apple_cc_single_mod=no
7293
if test -z "${LT_MULTI_MODULE}"; then
7294
# By default we will add the -single_module flag. You can override
7295
# by either setting the environment variable LT_MULTI_MODULE
7296
# non-empty at configure time, or by adding -multi_module to the
7298
echo "int foo(void){return 1;}" > conftest.c
7299
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7300
-dynamiclib ${wl}-single_module conftest.c
7301
if test -f libconftest.dylib; then
7302
lt_cv_apple_cc_single_mod=yes
7303
rm -rf libconftest.dylib*
7308
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7309
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7310
{ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7311
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7312
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7313
echo $ECHO_N "(cached) $ECHO_C" >&6
7315
lt_cv_ld_exported_symbols_list=no
7316
save_LDFLAGS=$LDFLAGS
7317
echo "_main" > conftest.sym
7318
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7319
cat >conftest.$ac_ext <<_ACEOF
7322
cat confdefs.h >>conftest.$ac_ext
7323
cat >>conftest.$ac_ext <<_ACEOF
7324
/* end confdefs.h. */
7334
rm -f conftest.$ac_objext conftest$ac_exeext
7335
if { (ac_try="$ac_link"
7337
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338
*) ac_try_echo=$ac_try;;
7340
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7341
(eval "$ac_link") 2>conftest.er1
7343
grep -v '^ *+' conftest.er1 >conftest.err
7345
cat conftest.err >&5
7346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347
(exit $ac_status); } && {
7348
test -z "$ac_c_werror_flag" ||
7349
test ! -s conftest.err
7350
} && test -s conftest$ac_exeext &&
7351
$as_test_x conftest$ac_exeext; then
7352
lt_cv_ld_exported_symbols_list=yes
7354
echo "$as_me: failed program was:" >&5
7355
sed 's/^/| /' conftest.$ac_ext >&5
7357
lt_cv_ld_exported_symbols_list=no
7360
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7361
conftest$ac_exeext conftest.$ac_ext
7362
LDFLAGS="$save_LDFLAGS"
7365
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7366
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7368
rhapsody* | darwin1.[0123])
7369
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7371
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7373
# if running on 10.5 or later, the deployment target defaults
7374
# to the OS version, if on x86, and 10.4, the deployment
7375
# target defaults to 10.4. Don't you love it?
7376
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7377
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7378
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7380
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7382
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7386
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7387
_lt_dar_single_mod='$single_module'
7389
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7390
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7392
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7394
if test "$DSYMUTIL" != ":"; then
7395
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7086
7403
enable_dlopen=no
7087
7404
enable_win32_dll=no
11276
11614
darwin* | rhapsody*)
11278
rhapsody* | darwin1.[012])
11279
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11282
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11283
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11285
case ${MACOSX_DEPLOYMENT_TARGET} in
11287
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11290
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11296
11615
archive_cmds_need_lc_CXX=no
11297
11616
hardcode_direct_CXX=no
11298
11617
hardcode_automatic_CXX=yes
11299
11618
hardcode_shlibpath_var_CXX=unsupported
11300
11619
whole_archive_flag_spec_CXX=''
11301
11620
link_all_deplibs_CXX=yes
11303
if test "$GXX" = yes ; then
11304
lt_int_apple_cc_single_mod=no
11621
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11622
if test "$GXX" = yes ; then
11305
11623
output_verbose_link_cmd='echo'
11306
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11307
lt_int_apple_cc_single_mod=yes
11624
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}"
11625
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11626
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}"
11627
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}"
11628
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11629
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}"
11630
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}"
11309
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11310
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11312
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'
11314
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11315
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11316
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11317
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}'
11319
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}'
11321
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}'
11323
11633
case $cc_basename in